package com.module.service.impl;


import com.module.dao.HomeLoginMapper;
import com.module.entity.User;
import com.module.service.HomeLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by libing on 2016/12/13.
 */
@Service
public class HomeLoginServiceImpl implements HomeLoginService {

    @Autowired
    HomeLoginMapper homeLoginMapper;

    public int checkExist(User user) throws Exception {
        return homeLoginMapper.checkExist(user);
    }

    public User selectPasswordAndKey(User user) throws Exception {
        return homeLoginMapper.selectPasswordAndKey(user);
    }
}
